<!--[if lte IE 6]>
<div class="ietishi relative" id="ie6-warning">
	你的浏览器版本过低，升级后体验效果更佳	
	<a href="http://d.union.ijinshan.com/duba/download.php?cid=44&sid=67919" class="iclse" onclick="document.getElementById('ie6-warning').style.display='none';return false;"></a>
</div>
<![endif]-->
<script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "//hm.baidu.com/hm.js?ed0b5b4b4b974d673af3853613beace3";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>

<div class="top_logo clearfix">
	<div class="main">
    	<div class="fl">
			<div class="u-logo">爱厨房</div>
			<a class="sloganlk" href="<?=base_url()?>" title="爱厨房 爱美食">爱厨房 爱美食</a>
        </div>
        <form method="POST" id="searchForm" action="http://www.ichufang.cn/search/caipu/" accept-charset="utf-8" onsubmit="document.charset='utf-8';return Search();"> 
        <div class="fl search">
        	<input type="text" placeholder="搜索 “菜谱 或 食材”"  name="keywords" id="global_search_inpt" _lpchecked="1">
        	<ol id="hotwords" class="hotwords" style="display:none">
				<li><a href='#'>番茄 牛肉</a></li>
				<li><a href='#'>羊肉</a></li>
				<li><a href='#'>醋溜白菜</a></li>
			</ol>
            <button type="submit" class="search_bt">搜 索</button>
        </div>
		</form>
		<div class="fr">
        	<?php if (!$this->user_login->is_logged_in() ):?>
            <span><a href="<?=site_url('user/login')?>" title="登录">登录</a> <b>|</b> <a target="_blank" class="line1" href="<?=site_url('user/register')?>" title="注册">注册</a></span>
            <span>
            	<a class="api_qq" href="<?=site_url('user/api_connect/QQ')?>" title="QQ登录">QQ登录</a> 
            	<a class="api_sina" href="<?=site_url('user/api_connect/Sina')?>" title="新浪微博登录">新浪微博</a></span>
            <?php else:?>
            <span>
				<a href="<?=site_url('u/'.$this->user_login->get_user_id())?>" target="_blank" ><?=$this->user_login->get_username();?></a> <b>|</b> 
				<a href="<?=site_url('user/create/caipu')?>" target="_blank">创建菜谱</a> 
				<a href="<?=site_url('user/profile')?>">账号设置</a></li> 
					<?php if ($this->user_login->is_admin() ):?>
					<a href="<?=site_url('manage/')?>" target="_blank">系统设置</a> 
					<?php endif?> 
				<a href="<?=site_url('user/logout')?>">注销登录</a>
			</span>
			<?php endif?>
        </div>
    </div>
</div>

<div style="height:43px;">
	<div class="header-nav clearfix">
		<div class="main">
			<div class="m-nav">
				<ul>
					<li><a class="nav <?php if($this->uri->segment(1)==''){echo 'ls';}?>" href="<?=base_url()?>" title="<?=$this->config->item('site_name');?>首页"><span>首页</span></a></li>
					<li><a class="nav <?php if($this->uri->segment(1)=='caipu' || $this->uri->segment(1)=='recipe'){echo 'ls';}?>" href="<?=site_url('caipu')?>" title="菜谱大全"><span>菜谱大全</span></a></li>
					<li><a class="nav <?php if($this->uri->segment(1)=='shicai' || $this->uri->segment(1)=='ingredients'){echo 'ls';}?>" href="<?=site_url('shicai')?>" title="食材百科"><span>食材百科</span></a></li>
					<li><a class="nav <?php if($this->uri->segment(1)=='caidan'){echo 'ls';}?>" href="<?=site_url('caidan')?>" title="美食菜单"><span>美食菜单</span></a></li>
					<li><a class="nav <?php if($this->uri->segment(1)=='health'){echo 'ls';}?>" href="<?=site_url('health')?>" title="健康食疗"><span>健康食疗</span></a></li>
					<li><a class="nav <?php if($this->uri->segment(1)=='article'){echo 'ls';}?>" href="<?=site_url('article/lists')?>" title="厨房知识"><span>厨房知识</span></a></li>
				</ul>
			</div>
		</div>
	</div>
</div>
<script>
//搜索热门关键字代码
function fbbox(fbboxID,ObjID){
	$(fbboxID).click(function(){
		$(ObjID).show();
	});
	$(ObjID).hover('',function(){
		$(ObjID).hide();
	});
	$(fbboxID).keydown(function(){
		$(ObjID).hide();
	});
	$(ObjID).find('li').click(function(){
		var text = $(this).find('a').text();
		$(fbboxID).val(text);
		$(ObjID).hide();
	});
}
fbbox('#global_search_inpt','#hotwords');
</script>

<div class="header-bottom"></div>